package com.hotacorp.opencloud.authserver.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * 增强security的UserDetailsService，支持手机号码查找用户信息
 * @author lwg
 *
 */
public interface EnhanceUserDetailsService extends UserDetailsService {
	UserDetails loadUserByPhone(String phone) throws UsernameNotFoundException;
	
}
